
<script id="view-shops-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-shops">
		<input type="hidden" name="id" value="{{id}}"/>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">名称</label>
					<div class="col-sm-8">
						<input type="text" name="name" id="name" class="form-control" required="required" value="{{name}}" />
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="regionid">校区</label>
					<div class="col-sm-8">
						<select name="regionid" id="regionid" class="chosen-select" data-entity="com.app.miwawa.api.system.entity.Region">
							{{select county}}
						</select> 
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="code">编码</label>
					<div class="col-sm-8">
						<input type="text" name="code" id="code" class="form-control" readonly="readonly" value="{{code}}" />
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="createDate">创办时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input type="text" name="createDate" id="createDate" class="form-control" value="{{createDate}}" /> 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="keeper">店长</label>
					<div class="col-sm-8">
						<input type="text" name="keeper" id="keeper" class="form-control" value="{{keeper}}" />
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="mobile">手机</label>
					<div class="col-sm-8">
						<input type="text" name="mobile" id="mobile" class="form-control" value="{{mobile}}" /> 
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="address">地址</label>
					<div class="col-sm-8">
						<input type="text" name="address" id="address" class="form-control" value="{{address}}" />
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="zipcode">邮编</label>
					<div class="col-sm-8">
						<input type="text" name="zipcode" id="zipcode" class="form-control" value="{{zipcode}}" />
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="telehone">电话</label>
					<div class="col-sm-8">
						<input type="text" name="telehone" id="telehone" class="form-control" value="{{telehone}}" />
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-sm-12">
				<div class="widget">
					<div class="widget-header bordered-top bordered-pink">
						<span class="widget-caption"> 机构介绍 </span>
					</div>
					<div class="widget-body">
						<textarea name="description" id="description" class="form-control">{{description}}</textarea>
					</div>
				</div>
			</div>
		</div>
		
		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-shops">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-shops', '.form-editor-shops');">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>
	
